package com.ibader.eclipse.editors;

import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.editors.text.TextEditor;

import com.ibader.eclipse.xml.XMLConfiguration;
import com.ibader.eclipse.xml.XMLDocumentProvider;


public class XMLEditor extends TextEditor {

	private ColorManager colorManager;
	private IEditorPart parent;

	public XMLEditor(IEditorPart parent) {
		super();
		this.parent = parent;
		colorManager = new ColorManager();
		setSourceViewerConfiguration(new XMLConfiguration(colorManager));
		setDocumentProvider(new XMLDocumentProvider());
	}

	public void dispose() {
		colorManager.dispose();
		super.dispose();
	}

}
